package com.ukao.steward.bean;

/**
 * Created by ukaodev on 2017/9/12.
 */

public class LoginBean  extends BaseBean<LoginBean> {



        /**
         * accessToken : kfswvfk0jjuffwysmwpa49iknn23o8er
         * workerInfo : {"id":65,"mercId":1,"cityId":1,"wxId":-1,"name":"小物流","phone":"18875875458","code":"24870806","imgPath":null,"isRest":1,"status":1,"roleId":13,"isBinding":0,"createBy":8,"createTime":1503364012000,"updateBy":null,"updateTime":null}
         */

        private String accessToken;
    private  String  alias;
        private WorkerInfoBean workerInfo;


    public String getAlias() {
        return alias;
    }

    public String getAccessToken() {
            return accessToken;
        }

        public void setAccessToken(String accessToken) {
            this.accessToken = accessToken;
        }

        public WorkerInfoBean getWorkerInfo() {
            return workerInfo;
        }

        public void setWorkerInfo(WorkerInfoBean workerInfo) {
            this.workerInfo = workerInfo;
        }

        public static class WorkerInfoBean {
            /**
             * id : 65
             * mercId : 1
             * cityId : 1
             * wxId : -1
             * name : 小物流
             * phone : 18875875458
             * code : 24870806
             * imgPath : null
             * isRest : 1
             * status : 1
             * roleId : 13
             * isBinding : 0
             * createBy : 8
             * createTime : 1503364012000
             * updateBy : null
             * updateTime : null
             */

            private int id;
            private int mercId;
            private int cityId;
            private int wxId;
            private String name;
            private String phone;
            private String code;
            private String imgPath;
            private int isRest;
            private int status;
            private int roleId;
            private int isBinding;
            private int createBy;
            private long createTime;
            private Object updateBy;
            private Object updateTime;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getMercId() {
                return mercId;
            }

            public void setMercId(int mercId) {
                this.mercId = mercId;
            }

            public int getCityId() {
                return cityId;
            }

            public void setCityId(int cityId) {
                this.cityId = cityId;
            }

            public int getWxId() {
                return wxId;
            }

            public void setWxId(int wxId) {
                this.wxId = wxId;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getPhone() {
                return phone;
            }

            public void setPhone(String phone) {
                this.phone = phone;
            }

            public String getCode() {
                return code;
            }

            public void setCode(String code) {
                this.code = code;
            }

            public String getImgPath() {
                return imgPath;
            }

            public void setImgPath(String imgPath) {
                this.imgPath = imgPath;
            }

            public boolean  getIsRest() {
                /*0.休息 1在线）*/

                if (isRest==1){
                    return true;
                }

                return false;
            }

            public void setIsRest(int isRest) {
                this.isRest = isRest;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public int getRoleId() {
                return roleId;
            }

            public void setRoleId(int roleId) {
                this.roleId = roleId;
            }

            public int getIsBinding() {
                return isBinding;
            }

            public void setIsBinding(int isBinding) {
                this.isBinding = isBinding;
            }

            public int getCreateBy() {
                return createBy;
            }

            public void setCreateBy(int createBy) {
                this.createBy = createBy;
            }

            public long getCreateTime() {
                return createTime;
            }

            public void setCreateTime(long createTime) {
                this.createTime = createTime;
            }

            public Object getUpdateBy() {
                return updateBy;
            }

            public void setUpdateBy(Object updateBy) {
                this.updateBy = updateBy;
            }

            public Object getUpdateTime() {
                return updateTime;
            }

            public void setUpdateTime(Object updateTime) {
                this.updateTime = updateTime;
            }
        }

}
